#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QFileDialog>
#include <QString>
#include "chm2pdfconverter.h"

#include "../lib/chmlib-0.40/src/chm_lib.h"

namespace Ui {
    class MainWindow;
}

class MainWindow : public QMainWindow {
    Q_OBJECT
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void changeEvent(QEvent *e);

private:
    Ui::MainWindow *ui;

    chmFile *chmFileToConvert;
    QString inputFile;
    QString outputFile;

    Chm2PdfConverter converter;

public slots:
    void updateInputLineEdit();
    void updateOutputLineEdit();
    void convert();
};

#endif // MAINWINDOW_H
